using System;
using XmlStudio.DataLayer;

namespace XmlStudio.Models.Events {

    /// <summary>
    /// Event arguments for the SubtreeUpdated event.
    /// </summary>
    /// <typeparam name="TNode">The type of the node.</typeparam>
    public class SubtreeUpdatedEventArgs<TNode> : EventArgs
            where TNode : BigXmlNode {
        /// <summary>
        /// Gets or sets the root.
        /// </summary>
        /// <value>The root.</value>
        public TNode Root { get; private set; }

        /// <summary>
        /// Initializes a new instance of the <see cref="SubtreeUpdatedEventArgs&lt;TNode&gt;"/> class.
        /// </summary>
        /// <param name="root">The root node.</param>
        public SubtreeUpdatedEventArgs(TNode root) {
            this.Root = root;
        }
    }
}
